package com.dz.lm.service.attach;

import com.dz.lm.common.dto.AttachDTO;
import com.dz.lm.common.dto.PageDto;
import com.dz.lm.common.exception.ServiceException;
import com.dz.lm.domain.attach.Attach;

/**
 * 附件 服务层
 */
public interface AttachService {
    int add(Attach attach)throws ServiceException;
    int delete(long attachId)throws ServiceException;
    AttachDTO sleletById(long attachId)throws ServiceException;
    PageDto<AttachDTO> query(int page,int rwos,int type,int attachType,int fileId,String name,long userId)throws ServiceException;
    PageDto<AttachDTO> queryByUserId(int page,int rwos,long userId)throws ServiceException;
}
